describe("MoveAmountView", function(){
    var moveAmountView = null;
    beforeEach(function(){
        moveAmountView = App.MoveAmountView.create();
        var transfer = App.OwnAccountTransfer.create();
        spyOn(App.getSession(),'getCurrentTransfer').andReturn(transfer);
    });

    it("didInsertElement method",function(){
        spyOn(moveAmountView, "_applyValidation");
        moveAmountView.didInsertElement();
        expect(moveAmountView._applyValidation).toHaveBeenCalled();
    });

    it("_applyValidation method", function(){
        spyOn(BreezeUtils, "applyInputValidation");
        moveAmountView._applyValidation();
        expect(BreezeUtils.applyInputValidation).toHaveBeenCalled();
    });
});